<?php

namespace app\http\middleware;

class ApiParam
{
    /**
     * 参数转换中间件
     * User: zhouyao
     * Date: 2018/9/8
     * Time: 上午9:49
     * @param $request
     * @param \Closure $next
     * @return mixed
     */
    public function handle($request, \Closure $next)
    {
        $input = $request->param();
        $request->input = $input;

        return $next($request);
    }
}
